import http from './request'
import request from "./request";

export const trkHandle = (params) => http.post(`/wcs/trk/operate?trkId=${params.trkId}&operateType=${params.operateType}`)
export const agvHandle = (params) => http.post(`/wcs/agv-trk-hk/operate?id=${params.id}&operateType=${params.operateType}`)
export const postHandle = (params) => http.post(`/wcs/post-wms/operate?postId=${params.postId}&operateType=${params.operateType}`)

// 删除postWms指令
export const deletePostWms = (ids) => {
    return request({
        url: '/wcs/post-wms',
        method: 'delete',
        data: ids  // 注意：这里直接传递数组，因为后端需要 Long[] ids
    });
};